package com.scorpio.order.service;


import com.scorpio.order.domain.OrderEntity;
import com.scorpio.order.domain.OrderWaybillEntity;
import com.scorpio.order.enums.OrderStatusEmun;
import com.scorpio.order.vo.UpdateOrderMoneyVo;
import com.scorpio.order.vo.UpdateSendOutVo;
import com.scorpio.sdk.dto.SFRouteRespsModel;

import java.util.List;

/**
 * 订单Service接口
 *
 * @author scorpio
 * @date 2021-11-29
 */
public interface IOrderService {

    //查询订单
    OrderEntity selectById(Long id);

    //查询订单列表
    List<OrderEntity> selectList(OrderEntity entity);

    //更新物流信息
    int updateLogisticsInfo(UpdateSendOutVo vo);

    //更新发货状态
    int updateSendOut(UpdateSendOutVo vo);

    //扫描过期订单
    int scanOverdueb();

    //超时订单
    List<OrderEntity> timeoutOrders();

    List<OrderEntity> selectByStatus(OrderStatusEmun statusEmun);

    //更新订单物流订单完成
    void updateFinish(OrderEntity orderEntity);

    int updateOrderMoney(UpdateOrderMoneyVo vo);
}
